/*! _forms-general.scss | Vuero | Css ninja 2020-2021 */

/*
    1. labels
    2. Inputs and textareas
    3. Radios
    4. Fieldset | Field | Control
    5. Fieldset | Field | Control Dark mode
    6. Custom select
    7. Autocomplete
    8. Autocomplete Dark mode
    9. Switch
    10. Range input
    11. File inputs
    12. File inputs Dark mode
    13. Filepond
    14. Filepond Dark mode
    15. Choices
    16. Choices Dark mode
*/

/* ==========================================================================
1. Labels
========================================================================== */

.form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-text);

  &.is-smaller {
    font-size: 0.8rem;
    font-weight: 400;
  }

  &.is-narrow {
    margin-bottom: 0;
  }
}

.sub-label {
  font-size: 0.8rem;
  color: var(--muted-grey);
}

label[for] {
  cursor: pointer;
}

/* ==========================================================================
2. Inputs and textareas
========================================================================== */

.input,
.input:focus,
.textarea,
.textarea:focus {
  box-shadow: none;
}

.input {
  height: 38px;

  //padding-bottom: 8px;
  transition: all 0.3s;

  &:focus {
    border-color: var(--fade-grey-dark-4);
    box-shadow: var(--light-box-shadow);

    &.is-primary-focus {
      border-color: var(--primary) !important;
    }

    &.is-success-focus {
      border-color: var(--success) !important;
    }

    &.is-info-focus {
      border-color: var(--info) !important;
    }

    &.is-warning-focus {
      border-color: var(--warning) !important;
    }

    &.is-danger-focus {
      border-color: var(--danger) !important;
    }
  }
}

.textarea {
  transition: all 0.3s;

  &:focus {
    border-color: var(--fade-grey-dark-4);
    box-shadow: var(--light-box-shadow);

    &.is-primary-focus {
      border-color: var(--primary) !important;
    }

    &.is-success-focus {
      border-color: var(--success) !important;
    }

    &.is-info-focus {
      border-color: var(--info) !important;
    }

    &.is-warning-focus {
      border-color: var(--warning) !important;
    }

    &.is-danger-focus {
      border-color: var(--danger) !important;
    }
  }
}

/* ==========================================================================
3. Inputs and textareas dark-mode
========================================================================== */

.is-dark {
  .input,
  .textarea {
    background-color: var(--dark-sidebar-light-2);
    border-color: var(--dark-sidebar-light-4);
    color: var(--dark-dark-text);

    &:hover {
      border-color: var(--dark-sidebar-light-12);
    }

    &:focus {
      border-color: var(--dark-sidebar-light-8);

      + .form-icon svg {
        color: var(--primary) !important;
      }
    }

    &::-webkit-input-placeholder {
      color: var(--primary-grey-dark-30) !important;
    }

    &::-moz-placeholder {
      color: var(--primary-grey-dark-30) !important;
    }

    &:-ms-input-placeholder {
      color: var(--primary-grey-dark-30) !important;
    }

    &:-moz-placeholder {
      color: var(--primary-grey-dark-30) !important;
    }

    &.is-primary-focus {
      &:focus {
        border-color: var(--primary) !important;
      }
    }
  }
}

/* ==========================================================================
3. Radios
========================================================================== */

.radio-list {
  padding: 6px 4px;

  li {
    label {
      position: relative;
      display: block;

      input {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
        cursor: pointer;

        &:checked + .k-radio {
          .radio-knob {
            border-color: var(--primary);

            .knob-inner {
              transform: scale(1);
            }
          }

          .label-text {
            color: var(--dark-text);
          }
        }
      }

      span {
        display: block;
      }

      .k-radio {
        display: flex;
        align-items: center;
        padding: 8px 0;

        .radio-knob {
          height: 20px;
          width: 20px;
          border: 1px solid var(--primary-grey);
          border-radius: var(--radius-rounded);
          display: flex;
          justify-content: center;
          align-items: center;

          .knob-inner {
            height: 8px;
            width: 8px;
            border-radius: var(--radius-rounded);
            background: var(--primary);
            transition: all 0.3s;
            transform: scale(0);
          }
        }

        .label-text {
          margin-left: 10px;
          color: var(--muted-grey);
          font-size: 0.9rem;
          font-weight: 500;
          line-height: 0;
          transition: color 0.3s;
        }
      }
    }
  }
}

/* ==========================================================================
4. Fieldset | Field | Controls
========================================================================== */

.form-fieldset {
  padding: 20px 0;
  max-width: 480px;
  margin: 0 auto;

  .fieldset-heading {
    margin-bottom: 20px;

    h4 {
      font-family: var(--font-alt);
      font-weight: 600;
    }

    p {
      font-size: 0.9rem;
    }
  }

  .columns {
    .column {
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
  }
}

.select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--muted-grey-light-14);
  border-width: 1.4px;
}

.select {
  width: 100%;

  &.is-loading {
    &::after {
      right: 0.75em;
      top: 0.75em;
    }
  }

  + .icon {
    svg {
      height: 18px;
      width: 18px;
    }

    .lnil,
    .lnir {
      font-size: 16px;
    }
  }
}

select {
  width: 100%;
  font-family: var(--font);

  &:focus {
    box-shadow: none !important;
    border-color: var(--fade-grey-dark-6) !important;
  }
}

.field {
  &.is-horizontal {
    .field-label {
      .label {
        font-family: var(--font);
        font-size: 0.9rem;
        color: var(--light-text) !important;
        font-weight: 400;
      }
    }
  }

  &.has-addons,
  &.is-grouped {
    .control {
      .button {
        height: 38px;
      }

      .select {
        height: 38px;

        &.currency-select {
          select {
            font-family: var(--font);
            font-weight: 600;
          }
        }

        select {
          height: 38px;
        }
      }
    }
  }

  &.has-textarea-addon {
    .textarea {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      border-bottom: none;
      border-color: var(--fade-grey-dark-2) !important;
      box-shadow: var(--light-box-shadow);
    }

    .is-textarea-addon {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 12px 8px;
      background: var(--white);
      border-radius: 0 0 4px 4px;
      border: 1px solid var(--fade-grey-dark-2);
      border-top: none;
      box-shadow: var(--light-box-shadow);
    }
  }

  > label {
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--light-text) !important;
  }
}

.control {
  &.is-loading {
    &::after {
      right: 0.75em;
      top: 0.75em;
    }

    .select {
      &::after {
        display: none;
      }
    }
  }

  &.has-icon {
    position: relative;

    .form-icon {
      position: absolute;
      top: 0;
      left: 0;
      height: 38px;
      width: 38px;
      display: flex;
      justify-content: center;
      align-items: center;

      svg {
        height: 18px;
        width: 18px;
        color: var(--placeholder);
        transition: all 0.3s;
      }

      .fas,
      .far,
      .fal,
      .fab {
        color: var(--placeholder);
        transition: all 0.3s;
      }

      .lnil,
      .lnir {
        font-size: 1.2rem;
        color: var(--placeholder);
        transition: all 0.3s;
      }
    }

    .input {
      height: 38px;
      padding-left: 38px;
      transition: all 0.3s;

      &:focus {
        + .form-icon {
          svg {
            color: var(--primary);
          }

          .fas,
          .far,
          .fal,
          .fab {
            color: var(--primary);
          }

          .lnil,
          .lnir {
            color: var(--primary);
          }
        }
      }
    }
  }

  &.has-validation {
    &.has-success {
      input {
        border-color: var(--success) !important;
        box-shadow: var(--light-box-shadow);
        transition: all 0.3s;
      }

      .validation-icon.is-success,
      .form-icon {
        opacity: 1 !important;

        svg,
        .form-icon svg {
          color: var(--success) !important;
        }
      }
    }

    &.has-error {
      input {
        border-color: var(--danger) !important;
        box-shadow: var(--light-box-shadow);
      }

      .validation-icon.is-error,
      .form-icon {
        opacity: 1 !important;

        svg,
        .form-icon svg {
          color: var(--danger) !important;
        }
      }

      .help-text span {
        &.info {
          display: none;
        }

        &.error {
          display: block;
        }
      }
    }

    .input {
      padding-right: 40px;
    }

    .validation-icon {
      position: absolute;
      top: 0;
      right: 0;
      height: 38px;
      width: 38px;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: all 0.3s;

      svg {
        height: 18px;
        width: 18px;
        color: var(--placeholder);
        transition: all 0.3s;
      }
    }
  }

  .help-text {
    display: block;
    color: var(--muted-grey);
    margin-top: 10px;
    font-size: 0.8rem;

    span {
      &.info {
        display: block;
      }

      &.error {
        display: none;
        color: var(--danger);
      }
    }
  }

  .search-results {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: 285px;
    overflow-y: auto;
    background: var(--white);
    opacity: 0;
    border: 1px solid var(--fade-grey-dark-3);
    border-radius: var(--radius);
    pointer-events: none;
    transform: translateY(5px);
    box-shadow: var(--light-box-shadow);
    z-index: 10;
    transition: all 0.3s;

    &.is-active {
      opacity: 1;
      pointer-events: all;
      transform: translateY(0);
    }

    .placeholder-wrap {
      min-height: 240px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 20px;

      .placeholder-content {
        img {
          display: block;
          margin: 0 auto;
          max-width: 100px;
        }

        h3 {
          font-family: var(--font);
          font-weight: 600;
          color: var(--dark-text);
          padding: 0;
        }

        p {
          color: var(--light-text);
          font-size: 0.95rem;
          max-width: 420px;
          margin: 0 auto;
        }
      }
    }

    .search-result {
      display: flex;
      align-items: center;
      padding: 12px;
      transition: all 0.3s;

      &:last-child {
        border-bottom: none;
      }

      &:hover {
        background: var(--fade-grey-light-4);
      }

      .v-avatar {
        .article {
          border-radius: var(--radius-small);
        }
      }

      .meta {
        margin-left: 12px;

        span {
          display: block;
          line-height: 1.3;

          &:first-child {
            font-family: var(--font);
            font-weight: 500;
            font-size: 0.9rem;
            color: var(--dark-text);
          }

          &:nth-child(2) {
            font-size: 0.85rem;
            color: var(--light-text);
          }
        }
      }
    }
  }
}

/* ==========================================================================
5. Fieldset | Field | Controls Dark mode
========================================================================== */

.is-dark {
  .form-fieldset {
    .fieldset-heading {
      h4 {
        color: var(--dark-dark-text);
      }
    }
  }

  .field {
    &.has-textarea-addon {
      .textarea {
        border-color: var(--dark-sidebar-light-4) !important;
      }

      .is-textarea-addon {
        background-color: var(--dark-sidebar-light-2);
        border-color: var(--dark-sidebar-light-4);
      }
    }
  }

  .control {
    &.has-icon {
      .input {
        &:focus {
          ~ .form-icon {
            svg {
              color: var(--primary);
            }

            .fas,
            .fal,
            .far,
            .fab,
            .lnir,
            .lnil {
              color: var(--primary);
            }
          }
        }
      }

      .form-icon {
        svg {
          color: var(--light-text-dark-5);
        }

        .fas,
        .fal,
        .far,
        .fab,
        .lnir,
        .lnil {
          color: var(--light-text-dark-5);
        }
      }
    }
  }

  .select {
    &:not(.is-multiple):not(.is-loading) {
      &:hover {
        &::after {
          border-color: var(--dark-dark-text) !important;
        }
      }
    }

    select {
      background-color: var(--dark-sidebar-light-10);
      border-color: var(--dark-sidebar-light-12) !important;
      color: var(--dark-dark-text);
    }
  }

  .search-results {
    background: var(--dark-sidebar-dark-2);
    border-color: var(--dark-sidebar-light-4) !important;

    .search-result {
      &:hover {
        background: var(--dark-sidebar-light-2);
      }

      .meta {
        span {
          &:first-child {
            color: var(--dark-dark-text);
          }
        }
      }
    }
  }
}

/* ==========================================================================
6. Custom select
========================================================================== */

.custom-select-wrapper {
  position: relative;
  margin-bottom: 10px;

  &.is-opened {
    .custom-select {
      border-color: var(--placeholder);
    }

    .select-drop {
      opacity: 1;
      transform: translateY(0);
      pointer-events: all;
    }

    .select-caret {
      transform: rotate(180deg);

      svg {
        color: var(--primary);
      }
    }
  }

  .custom-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--fade-grey);
    border-radius: var(--radius-large);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
      border-color: var(--placeholder);
    }

    .selected-option {
      .option-content {
        display: flex;
        justify-content: flex-start;
        align-items: center;

        .image {
          margin-right: 15px;

          img {
            height: 38px;
            width: 38px;
            border-radius: var(--radius-rounded);
          }
        }

        .option-text {
          span {
            display: block;

            &:first-child {
              font-size: 1rem;
              font-weight: 500;
              color: var(--primary);
            }

            &:nth-child(2) {
              font-size: 0.85rem;
              color: var(--muted-grey);
            }
          }
        }
      }
    }

    .select-caret {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 20px;
      height: 20px;
      transform: rotate(0);
      transition: all 0.3s;

      svg {
        width: 20px;
        height: 20px;
        color: var(--muted-grey);
      }
    }
  }

  .select-drop {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--fade-grey);
    border-radius: var(--radius-large);
    margin-top: 10px;
    padding: 5px 0;
    box-shadow: 0 5px 43px rgba(0, 0, 0, 0.18) !important;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s;

    .inner {
      position: relative;

      .option-wrapper {
        cursor: pointer;
        border-bottom: 1px solid var(--fade-grey);

        &:last-child {
          border-bottom: 0;
        }

        &:hover {
          background: #fafafa;
        }

        .option-content {
          padding: 10px;
          display: flex;
          justify-content: flex-start;
          align-items: center;

          .image {
            margin-right: 15px;

            img {
              height: 32px;
              width: 32px;
              border-radius: var(--radius-rounded);
            }
          }

          .option-text {
            span {
              display: block;

              &:first-child {
                font-size: 0.9rem;
                font-weight: 500;
                color: var(--dark-text);
              }

              &:nth-child(2) {
                font-size: 0.75rem;
                color: var(--muted-grey);
              }
            }
          }
        }
      }
    }
  }
}

/* ==========================================================================
7. Autocomplete
========================================================================== */

.h-autocomplete {
  .control {
    position: relative;

    .easy-autocomplete {
      width: 100% !important;

      input {
        box-shadow: none;
        color: var(--muted-grey);
        transition: all 0.3s;
      }

      .template-wrapper {
        display: flex !important;
        justify-content: flex-start;
        align-items: center;

        .avatar-wrapper {
          position: relative;
          width: 40px !important;
          height: 40px !important;

          .autocpl-avatar {
            width: 40px !important;
            height: 40px !important;
            border-radius: var(--radius-rounded) !important;
          }

          .avatar-badge {
            position: absolute;
            bottom: 0;
            right: -5px;
            width: 18px;
            height: 18px;
            border: 2px solid var(--white);
            border-radius: var(--radius-rounded);
          }
        }

        .entry-text {
          margin-left: 15px;

          span {
            font-size: 0.8rem;
            color: var(--title-grey);
          }
        }
      }
    }
  }

  li {
    height: auto !important;
    padding-top: 8px;
    padding-bottom: 8px;
    border-left: none !important;
    border-right: none !important;
  }

  .easy-autocomplete-container {
    top: 120% !important;
    border: none !important;

    ul {
      border-radius: var(--radius) !important;
      box-shadow: -1px 3px 10px 0 rgba(0, 0, 0, 0.06) !important;
    }
  }
}

.is-autocomplete {
  .control {
    .easy-autocomplete {
      width: 100% !important;

      input {
        box-shadow: none;

        &:focus {
          box-shadow: var(--light-box-shadow);

          + .icon {
            color: var(--primary);
          }
        }
      }

      .template-wrapper {
        display: flex !important;
        align-items: center;

        .avatar-wrapper {
          position: relative;
          margin-right: 10px;

          .autocpl-avatar {
            width: 32px !important;
            height: 32px !important;
            border-radius: var(--radius-rounded) !important;
          }

          .avatar-badge {
            position: absolute;
            bottom: 0;
            right: -2px;
            width: 16px;
            height: 16px;
            border: 1px solid var(--white);
            border-radius: var(--radius-rounded);
          }
        }

        .entry-text {
          color: var(--dark-text);
          line-height: 1.3;

          span {
            font-family: var(--font);
            display: block;

            &:first-child {
              font-family: var(--font-alt);
              font-size: 0.9rem;
              font-weight: 500;
              color: var(--dark-text);
            }

            &:nth-child(2) {
              font-size: 0.9rem;
              color: var(--light-text);
            }
          }
        }
      }
    }
  }

  li {
    height: auto !important;
    padding-top: 8px;
    padding-bottom: 8px;
    border-left: none !important;
    border-right: none !important;
  }

  .easy-autocomplete-container {
    top: 120% !important;
    border: none !important;

    ul {
      border-radius: var(--radius) !important;
      box-shadow: -1px 3px 10px 0 rgba(0, 0, 0, 0.06) !important;
    }
  }
}

/* ==========================================================================
8. Autocomplete Dark mode
========================================================================== */

.is-dark {
  .is-autocomplete {
    .easy-autocomplete-container {
      > ul {
        background: var(--dark-sidebar);
        border-color: var(--dark-sidebar-light-8);

        li {
          border-color: var(--dark-sidebar-light-8);

          &.selected {
            background-color: var(--dark-sidebar-light-3);
          }

          .eac-item {
            .template-wrapper {
              .entry-text {
                color: var(--dark-text);

                span {
                  &:first-child {
                    color: var(--dark-dark-text);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

/* ==========================================================================
9. Switch
========================================================================== */

.form-switch {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  &.is-primary {
    input {
      &:checked + i {
        background-color: var(--primary);
      }
    }
  }

  &.is-success {
    input {
      &:checked + i {
        background-color: var(--success);
      }
    }
  }

  &.is-info {
    input {
      &:checked + i {
        background-color: var(--info);
      }
    }
  }

  &.is-warning {
    input {
      &:checked + i {
        background-color: var(--warning);
      }
    }
  }

  &.is-danger {
    input {
      &:checked + i {
        background-color: var(--danger);
      }
    }
  }

  i {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    background-color: #e6e6e6;
    border-radius: 23px;
    vertical-align: text-bottom;
    transition: all 0.3s linear;

    &::before {
      content: '';
      position: absolute;
      left: 0;
      width: 42px;
      height: 22px;
      background-color: var(--white);
      border-radius: 11px;
      transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
      transition: all 0.25s linear;
    }

    &::after {
      content: '';
      position: absolute;
      left: 0;
      width: 22px;
      height: 22px;
      background-color: var(--white);
      border-radius: 11px;
      box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
      transform: translate3d(2px, 2px, 0);
      transition: all 0.2s ease-in-out;
    }
  }

  &:active {
    i::after {
      width: 28px;
      transform: translate3d(2px, 2px, 0);
    }

    input {
      &:checked + i::after {
        transform: translate3d(16px, 2px, 0);
      }
    }
  }

  input {
    position: absolute;
    opacity: 0;
    pointer-events: none;

    &:checked + i {
      background-color: var(--light-text);

      &::before {
        transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
      }

      &::after {
        transform: translate3d(22px, 2px, 0);
      }
    }
  }

  small {
    color: var(--muted-grey);
    position: relative;
    top: -4px;
  }
}

.switch-block {
  padding: 10px 0;
  display: flex;
  align-items: center;

  .text {
    margin-left: 6px;

    span {
      display: block;
      position: relative;
      top: -2px;
      color: var(--light-text);
    }
  }
}

/* ==========================================================================
14. Switch Dark mode
========================================================================== */

.is-dark {
  .form-switch {
    &.is-primary {
      input {
        &:checked + i {
          background-color: var(--primary) !important;

          &::after {
            background: var(--white) !important;
          }
        }
      }
    }

    &.is-success {
      input {
        &:checked + i {
          background-color: var(--success) !important;

          &::after {
            background: var(--white) !important;
          }
        }
      }
    }

    &.is-info {
      input {
        &:checked + i {
          background-color: var(--info) !important;

          &::after {
            background: var(--white) !important;
          }
        }
      }
    }

    &.is-warning {
      input {
        &:checked + i {
          background-color: var(--warning) !important;

          &::after {
            background: var(--white) !important;
          }
        }
      }
    }

    &.is-danger {
      input {
        &:checked + i {
          background-color: var(--danger) !important;

          &::after {
            background: var(--white) !important;
          }
        }
      }
    }

    i {
      background: var(--dark-sidebar) !important;

      &::before {
        background: var(--dark-sidebar) !important;
      }

      &::after {
        background: var(--dark-sidebar-light-22) !important;
      }
    }

    input {
      &:checked + i {
        &::after {
          background: var(--dark-sidebar-light-55) !important;
        }
      }
    }
  }
}

/* ==========================================================================
14. Thin Switch
========================================================================== */

.thin-switch {
  display: block;
  margin-left: 8px;

  &.is-primary {
    .input:checked ~ .slider {
      background: var(--primary-light-20);

      &::after {
        background: var(--primary);
        border-color: var(--primary);
      }
    }
  }

  &.is-success {
    .input:checked ~ .slider {
      background: var(--success-light-20);

      &::after {
        background: var(--success);
        border-color: var(--success);
      }
    }
  }

  &.is-info {
    .input:checked ~ .slider {
      background: var(--info-light-20);

      &::after {
        background: var(--info);
        border-color: var(--info);
      }
    }
  }

  &.is-warning {
    .input:checked ~ .slider {
      background: var(--warning-light-20);

      &::after {
        background: var(--warning);
        border-color: var(--warning);
      }
    }
  }

  &.is-danger {
    .input:checked ~ .slider {
      background: var(--danger-light-20);

      &::after {
        background: var(--danger);
        border-color: var(--danger);
      }
    }
  }

  .slider {
    position: relative;
    display: inline-block;
    height: 8px;
    width: 32px;
    border-radius: 8px;
    cursor: pointer;
    background: #c5c5c5;
    transition: all 0.2s ease;

    &::after {
      background: var(--light-grey);
      position: absolute;
      left: -8px;
      top: (7px - 24px) / 2;
      display: block;
      width: 24px;
      height: 24px;
      border-radius: var(--radius-rounded);
      border: 1px solid transparent;
      box-shadow: 0 2px 2px rgba(#000, 0.2);
      content: '';
      transition: all 0.2s ease;
    }
  }

  label {
    margin-right: 7px;
  }

  .input {
    display: none;

    ~ .label {
      margin-left: 8px;
    }

    &:checked ~ .slider {
      &::after {
        left: 32px - 24px + 8px;
      }
    }
  }

  .input:checked ~ .slider {
    &::after {
      background: var(--white);
      border: 1px solid var(--fade-grey);
    }
  }
}

.thin-switch-block {
  padding: 10px 0;
  display: flex;
  align-items: center;

  .text {
    margin-left: 16px;

    span {
      display: block;
      position: relative;
      color: var(--light-text);
    }
  }
}

/* ==========================================================================
14. Thin Switch Dark mode
========================================================================== */

.is-dark {
  .thin-switch {
    &.is-primary {
      .input:checked ~ .slider {
        background: var(--primary-light-20);

        &::after {
          background: var(--primary);
          border-color: var(--primary);
        }
      }
    }

    &.is-success {
      .input:checked ~ .slider {
        &::after {
          background: var(--success);
          border-color: var(--success);
        }
      }
    }

    &.is-info {
      .input:checked ~ .slider {
        &::after {
          background: var(--info);
          border-color: var(--info);
        }
      }
    }

    &.is-warning {
      .input:checked ~ .slider {
        &::after {
          background: var(--warning);
          border-color: var(--warning);
        }
      }
    }

    &.is-danger {
      .input:checked ~ .slider {
        &::after {
          background: var(--danger);
          border-color: var(--danger);
        }
      }
    }

    .slider {
      background: var(--dark-sidebar);

      &::after {
        background: var(--dark-sidebar-light-22);
      }
    }

    .input:checked ~ .slider {
      &::after {
        background: var(--dark-sidebar-light-55);
        border: var(--dark-sidebar-light-55);
      }
    }
  }
}

/* ==========================================================================
10. Range input
========================================================================== */

.range-slider {
  position: relative;
  width: 100%;
  margin: 0 4px;

  .slider-output {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;

    small {
      font-size: 0.8rem;
      color: var(--muted-grey);
    }
  }

  .input-range {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: var(--primary-grey);
    outline: none;

    &:focus {
      &::-webkit-slider-thumb {
        transform: scale(1.15);
      }
    }
  }

  .input-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-rounded);
    background: var(--primary);
    cursor: pointer;
    -webkit-transition: transform 0.3s;
    transition: transform 0.3s;
    transform: scale(1);
  }

  .input-range::-webkit-slider-thumb:hover {
    background: var(--primary);
  }

  .input-range:active::-moz-range-thumb {
    background: var(--primary);
  }

  .input-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: var(--radius-rounded);
    background: var(--primary);
    cursor: pointer;
    -webkit-transition: background-color 0.15s ease-in-out;
    transition: background-color 0.15s ease-in-out;
  }

  .range-value {
    display: block !important;
    position: relative;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px;
  }

  ::-moz-range-track {
    background: var(--primary-grey);
    border: 0;
  }

  input::-moz-focus-inner {
    border: 0;
  }
}

/* ==========================================================================
11. File inputs
========================================================================== */

.file {
  &.is-default {
    &:hover {
      .file-cta {
        box-shadow: var(--light-box-shadow) !important;
      }
    }

    .file-cta {
      background: var(--white);
      border: 1px solid var(--fade-grey-dark-3);
      transition: all 0.3s;
    }
  }
}

/* ==========================================================================
12. File inputs Dark mode
========================================================================== */

.is-dark {
  .file {
    &:not(.is-primary):not(.is-success):not(.is-info):not(.is-warning):not(.is-danger) {
      .file-cta {
        background: var(--dark-sidebar-light-10);
        border-color: var(--dark-sidebar-light-12);
        color: var(--dark-dark-text);
      }
    }

    .file-name {
      background-color: var(--dark-sidebar-light-2);
      border-color: var(--dark-sidebar-light-4);
    }
  }
}

/* ==========================================================================
13. Filepond
========================================================================== */

.filepond-uploader {
  &.is-two-grid {
    .filepond--item {
      width: calc(50% - 0.5em);
    }
  }

  &.is-three-grid {
    .filepond--item {
      width: calc(33.3% - 0.5em);
    }
  }

  .filepond--root {
    border: 2px dashed var(--fade-grey-dark-4);
    border-radius: var(--radius);
    min-height: 70px;
    cursor: pointer;
    transition: all 0.3s;
  }
}

.filepond-profile-wrap,
.filepond-square-wrap {
  display: inline-block;
  height: 100px;
  width: 100px;
  max-height: 100px;
  max-width: 100px;

  &.is-tiny {
    height: 68px;
    width: 68px;
    max-height: 68px;
    max-width: 68px;

    .lnil {
      font-size: 1.8rem;
    }
  }

  &.is-small {
    height: 80px;
    width: 80px;
    max-height: 80px;
    max-width: 80px;

    .lnil {
      font-size: 2rem;
    }
  }

  &:hover {
    .lnil {
      color: var(--primary);
    }

    .filepond--root {
      border-color: dashed var(--fade-grey-dark-6);
    }
  }

  .lnil {
    pointer-events: none;
    font-size: 2.4rem;
    color: var(--light-text);
    transition: color 0.3s;
  }

  .filepond--root {
    border: 2px dashed var(--fade-grey-dark-4);
    cursor: pointer;
    transition: all 0.3s;
  }
}

.filepond-square-wrap {
  .filepond--root {
    border-radius: var(--radius);
  }
}

/* ==========================================================================
14. Filepond Dark mode
========================================================================== */

.is-dark {
  .filepond-uploader,
  .filepond-profile-wrap,
  .filepond-square-wrap {
    &:hover {
      .lnil {
        color: var(--primary);
      }
    }

    .filepond--root {
      border-color: var(--dark-sidebar-light-12);
    }

    .filepond--drop-label {
      background: var(--dark-sidebar-light-2);

      label {
        color: var(--dark-dark-text);
      }
    }
  }
}

/* ==========================================================================
15. Choices
========================================================================== */

.choices {
  &.is-focused {
    .choices__inner {
      border-color: var(--fade-grey-dark-3);
      box-shadow: var(--light-box-shadow);
    }
  }

  .choices__inner {
    border-radius: var(--radius-large);
    transition: all 0.3s;

    .choices__list {
      .choices__item {
        position: relative !important;
        background-color: var(--fade-grey-dark-2);
        border-color: var(--fade-grey-dark-2);
        color: var(--dark-text);
        font-family: var(--font);
        padding: 4px 10px 5px 10px;

        &::before {
          content: '\f00d';
          position: absolute;
          top: 4.5px;
          right: 14px;
          font-family: 'Font Awesome\ 5 Free';
          font-weight: 900;
          color: var(--light-text);
        }

        button {
          border: none;
          background-image: none;
          margin: 0 -4px 0 4px;
        }
      }
    }
  }

  .choices__list--dropdown {
    margin-top: 6px;
    border-color: var(--fade-grey-dark-3);
    box-shadow: var(--light-box-shadow);

    .choices__item--choice {
      color: var(--light-text);
    }
  }
}

/* ==========================================================================
16. Choices Dark mode
========================================================================== */

.is-dark {
  .choices {
    &.is-focused {
      .choices__inner {
        border-color: var(--dark-sidebar-light-8);
      }
    }

    .choices__inner {
      background-color: var(--dark-sidebar-light-2);
      border-color: var(--dark-sidebar-light-4);

      input {
        background-color: var(--dark-sidebar-light-2);
        color: var(--dark-dark-text);
      }

      .choices__list {
        .choices__item {
          background-color: var(--dark-sidebar-light-8);
          border-color: var(--dark-sidebar-light-8);
          color: var(--dark-dark-text);
        }
      }
    }

    .choices__list--dropdown {
      background-color: var(--dark-sidebar-light-2);
      border-color: var(--dark-sidebar-light-4);

      .choices__item {
        &.is-highlighted {
          background-color: var(--dark-sidebar-dark-2);
        }
      }
    }
  }
}
